//
//  RTopicModel.m
//  EPAa
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 李日青. All rights reserved.
//

#import "RTopicModel.h"

@implementation RUserinfo

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
}
@end

@implementation RCounterList

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    
}
@end



@implementation RTopicModel
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"counterList"]) {
        self.counterListModel = [RCounterList new];
        [self.counterListModel setValuesForKeysWithDictionary:value];
    }else if ([key isEqualToString:@"userinfo"]){
        self.userinfoModel = [RUserinfo new];
        [self.userinfoModel setValuesForKeysWithDictionary:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}


@end
